// 获取选择的这天的打卡记录
import { post, get } from "@/util/request"
import { getAddressList, deleteAddress } from "./address"
import { getClassList, addClass, deleteClass } from "./class"
import { getAsignList, deleteAsign, addSign } from "./asign"
import { TimeCountAPI } from "./home"
import { updateInfo ,queryUserInfo} from "./user"
const getDateList = async ({ url = String, params = Object, success = () => { }, fail = () => { }, complete = () => { } }) => {
    try {
        const res = await post(url, {
            ...params
        })
        console.log("列表拿到了？", res)
        if (res.status === "0000") {
            success(res.data.list)
        }

    } catch (error) {
        fail(error)
    } finally {
        complete()
    }
}



export {
    updateInfo,
    queryUserInfo,
    getDateList,
    getAddressList,
    deleteAddress,
    getClassList,
    deleteClass,
    addClass,
    getAsignList,
    deleteAsign,
    addSign,
    TimeCountAPI
}

